import Main from '@/components/main'

export default [
  {
    path: '/login',
    name: 'login',
    meta: {
      title: 'Login - 登录',
      hideInMenu: true
    },
    component: () => import('@/view/login/login.vue')
  },
  {
    path: '/',
    name: '_home',
    redirect: '/home',
    component: Main,
    meta: {
      hideInMenu: true,
      notCache: true
    },
    children: [
      {
        path: '/home',
        name: 'home',
        meta: {
          hideInMenu: true,
          title: '首页',
          notCache: true,
          icon: 'md-home'
        },
        component: () => import('@/view/single-page/home')
      }
    ]
  },
  {
    path: '/customer-manage',
    name: 'customer-manage',
    redirect: '/customer-list',
    meta: {
      icon: 'md-contacts',
      title: '客户管理',
      showAlways: true
    },
    component: Main,
    children: [
      {
        path: '/customer-list',
        name: 'customer-list',
        meta: {
          icon: 'md-trending-up',
          title: '客户列表'
        },
        component: () => import('@/view/customer-manage/customer-list')
      }
    ]
  },
  {
    path: '/interactive',
    name: 'interactive',
    redirect: '/good-points',
    meta: {
      icon: 'ios-basket',
      title: '积分商城',
      showAlways: true
    },
    component: Main,
    children: [
      {
        path: '/good-points',
        name: 'good-points',
        meta: {
          icon: 'md-trending-up',
          title: '积分商品'
        },
        component: () => import('@/view/interactive/good-points')
      },
      {
        path: '/exchange-list',
        name: 'exchange-list',
        meta: {
          icon: 'md-trending-up',
          title: '兑换列表'
        },
        component: () => import('@/view/interactive/exchange-list')
      }
    ]
  },
  {
    path: '/task',
    name: 'task',
    redirect: '/task-list',
    meta: {
      icon: 'logo-buffer',
      title: '内容管理',
      showAlways: true
    },
    component: Main,
    children: [
      {
        path: '/task-list',
        name: 'task-list',
        meta: {
          icon: 'md-trending-up',
          title: '任务列表'
        },
        component: () => import('@/view/task/task-list')
      },
      {
        path: '/task-data',
        name: 'task-data',
        meta: {
          icon: 'md-trending-up',
          title: '任务数据'
        },
        component: () => import('@/view/task/task-data')
      },
      {
        path: '/graphic',
        name: 'graphic',
        meta: {
          icon: 'md-trending-up',
          title: '图文列表'
        },
        component: () => import('@/view/task/graphic')
      },
      {
        path: '/video',
        name: 'video',
        meta: {
          icon: 'md-trending-up',
          title: '视频列表'
        },
        component: () => import('@/view/task/video')
      }

    ]
  },
  {
    path: '/business',
    name: 'business',
    redirect: '/business-list',
    meta: {
      icon: 'ios-people',
      title: '商户管理',
      showAlways: true
    },
    component: Main,
    children: [
      {
        path: '/business-list',
        name: 'business-list',
        meta: {
          icon: 'md-trending-up',
          title: '商户列表'
        },
        component: () => import('@/view/business/business-list')
      }
    ]
  },
  {
    path: '/content',
    name: 'content',
    redirect: '/h5-content',
    meta: {
      icon: 'ios-image',
      title: '内容管理',
      showAlways: true
    },
    component: Main,
    children: [
      {
        path: '/send-message',
        name: 'send-message',
        meta: {
          icon: 'md-trending-up',
          title: '系统消息发送'
        },
        component: () => import('@/view/content/send-message')
      },
      {
        path: '/message-template',
        name: 'message-template',
        meta: {
          icon: 'md-trending-up',
          title: '消息模板'
        },
        component: () => import('@/view/content/message-template')
      },
      {
        path: '/ad-content',
        name: 'ad-content',
        meta: {
          icon: 'md-trending-up',
          title: '广告内容'
        },
        component: () => import('@/view/content/ad-content')
      },
      {
        path: '/report-requirements',
        name: 'report-requirements',
        meta: {
          icon: 'md-trending-up',
          title: '问题需求填报'
        },
        component: () => import('@/view/content/report-requirements')
      }
    ]
  },
  {
    path: '/statistics',
    name: 'statistics',
    redirect: '/operate-data',
    meta: {
      icon: 'md-pulse',
      title: '数据统计',
      showAlways: true
    },
    component: Main,
    children: [
      {
        path: '/operate-data',
        name: 'operate-data',
        meta: {
          icon: 'md-trending-up',
          title: '运营数据'
        },
        component: () => import('@/view/statistics/operate-data')
      },
      {
        path: '/ad-data',
        name: 'ad-data',
        meta: {
          icon: 'md-trending-up',
          title: '广告数据'
        },
        component: () => import('@/view/statistics/ad-data')
      }
    ]
  },
  {
    path: '/operate',
    name: 'operate',
    redirect: '/template-check',
    meta: {
      icon: 'md-person',
      title: '运营管理',
      showAlways: true
    },
    component: Main,
    children: [
      {
        path: '/template-check',
        name: 'template-check',
        meta: {
          icon: 'md-trending-up',
          title: '短信模板审核'
        },
        component: () => import('@/view/operate/template-check')
      },
      {
        path: '/banner-setting',
        name: 'banner-setting',
        meta: {
          icon: 'md-trending-up',
          title: 'banner设置'
        },
        component: () => import('@/view/operate/banner-setting')
      }, {
        path: '/config-task',
        name: 'config-task',
        meta: {
          icon: 'md-trending-up',
          title: '任务调整'
        },
        component: () => import('@/view/operate/config-task')
      }
    ]
  },
  {
    path: '/sms',
    name: 'sms',
    redirect: '/sms-send',
    meta: {
      icon: 'ios-chatbubbles-outline',
      title: '短信群发',
      showAlways: true
    },
    component: Main,
    children: [
      // {
      //   path: '/team-send',
      //   name: 'team-send',
      //   meta: {
      //     icon: 'md-trending-up',
      //     title: '分组发送'
      //   },
      //   component: () => import('@/view/sms/team-send')
      // },
      {
        path: '/sms-send',
        name: 'sms-send',
        meta: {
          icon: 'md-trending-up',
          title: '批量发送'
        },
        component: () => import('@/view/sms/sms-send')
      },
      {
        path: '/sms-template',
        name: 'sms-template',
        meta: {
          icon: 'md-trending-up',
          title: '短信模板'
        },
        component: () => import('@/view/sms/sms-template')
      },
      {
        path: '/send-data',
        name: 'send-data',
        meta: {
          icon: 'md-trending-up',
          title: '短信任务'
        },
        component: () => import('@/view/sms/send-data')
      }
    ]
  },
  {
    path: '/financial',
    name: 'financial',
    redirect: '/commission',
    meta: {
      icon: 'logo-bitcoin',
      title: '账户',
      showAlways: true
    },
    component: Main,
    children: [
      {
        path: '/service-fee',
        name: 'service-fee',
        meta: {
          icon: 'md-trending-up',
          title: '服务费统计'
        },
        component: () => import('@/view/financial/service-fee')
      },
      {
        path: '/account-message',
        name: 'account-message',
        meta: {
          icon: 'md-trending-up',
          title: '商户充值消息'
        },
        component: () => import('@/view/financial/account-message')
      },
      {
        path: '/account-funding',
        name: 'account-funding',
        meta: {
          icon: 'md-trending-up',
          title: '商户账户列表'
        },
        component: () => import('@/view/financial/account-funding')
      },
      {
        path: '/account-record',
        name: 'account-record',
        meta: {
          icon: 'md-trending-up',
          title: '操作充值记录'
        },
        component: () => import('@/view/financial/account-record')
      },
      {
        path: '/commission-data',
        name: 'commission-data',
        meta: {
          icon: 'md-trending-up',
          title: '商户佣金数据'
        },
        component: () => import('@/view/financial/commission-data')
      },
      {
        path: '/account',
        name: 'account',
        meta: {
          icon: 'md-trending-up',
          title: '账户充值'
        },
        component: () => import('@/view/financial/account')
      }
    ]
  },
  {
    path: '/system',
    name: 'system',
    redirect: '/account-manage',
    meta: {
      icon: 'md-settings',
      title: '系统设置',
      showAlways: true
    },
    component: Main,
    children: [
      {
        path: '/account-manage',
        name: 'account-manage',
        meta: {
          icon: 'md-trending-up',
          title: '账户管理'
        },
        component: () => import('@/view/system/account-manage')
      },
      {
        path: '/role-manage',
        name: 'role-manage',
        meta: {
          icon: 'md-trending-up',
          title: '角色管理'
        },
        component: () => import('@/view/system/role-manage')
      },
      {
        path: '/basic-manage',
        name: 'basic-manage',
        meta: {
          icon: 'md-trending-up',
          title: '基础设置'
        },
        component: () => import('@/view/system/basic-manage')
      },
      {
        path: '/banner',
        name: 'banner',
        meta: {
          icon: 'md-trending-up',
          title: 'banner设置'
        },
        component: () => import('@/view/system/banner')
      },
      {
        path: '/message',
        name: 'message',
        meta: {
          icon: 'md-trending-up',
          title: '系统消息'
        },
        component: () => import('@/view/system/message')
      },
      {
        path: '/parameter-config',
        name: 'parameter-config',
        meta: {
          icon: 'md-trending-up',
          title: '参数配置'
        },
        component: () => import('@/view/system/parameter-config')
      },
      {
        path: '/sys-role-manage',
        name: 'sys-role-manage',
        meta: {
          icon: 'md-trending-up',
          title: '角色管理'
        },
        component: () => import('@/view/system/sys-role-manage')
      },
      {
        path: '/sys-account-manage',
        name: 'sys-account-manage',
        meta: {
          icon: 'md-trending-up',
          title: '账户管理'
        },
        component: () => import('@/view/system/sys-account-manage')
      },
      {
        path: '/sys-parameter-config',
        name: 'sys-parameter-config',
        meta: {
          icon: 'md-trending-up',
          title: '参数配置'
        },
        component: () => import('@/view/system/sys-parameter-config')
      }
    ]
  },
  {
    path: '/401',
    name: 'error_401',
    meta: {
      hideInMenu: true
    },
    component: () => import('@/view/error-page/401.vue')
  },
  {
    path: '/500',
    name: 'error_500',
    meta: {
      hideInMenu: true
    },
    component: () => import('@/view/error-page/500.vue')
  },
  {
    path: '*',
    name: 'error_404',
    meta: {
      hideInMenu: true
    },
    component: () => import('@/view/error-page/404.vue')
  }
]
